﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TeachingAffairsManagementSystem.UserControl.LeftNavbar
{
    public partial class AdminLeftNavbar : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            switch (Request.QueryString["p"])
            {
                case "sm":
                    LStudentManage.Attributes.Add("class","active");
                    break;
                case "tm":
                    LTeacherManage.Attributes.Add("class","active");
                    break;
                case "lm":
                    LLessonManage.Attributes.Add("class","active");
                    break;
                case "lsm":
                    LCourseSelectionManage.Attributes.Add("class", "active");
                    break;
            }
        }
    }
}